<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>百度外卖</title>
	<link rel="stylesheet" type="text/less" href="__PUBLIC__/css/common.less">
	<link rel="stylesheet" type="text/less" href="__PUBLIC__/css/content.less">
	<script type="text/javascript" src="__PUBLIC__/js/less-1.5.0.min.js"></script>
	<hdjs/>

	<script type="text/javascript" src="__PUBLIC__/js/content.js"></script>
	<script type="text/javascript">
	var stid = {$hd get.stid};

	var qisong = {$default.risedelivery};

	var peisong = {$default.delivery};
	var mian = 0;
	<if value="in_array('jian',$attr)">
	mian=6;
	</if>
	
	</script>
	<script type="text/javascript" src="__PUBLIC__/js/login.js"></script>
	
</head>
<script type="text/javascript">
	function MoveBox(obj) {
	var obj = $(obj).parents('li').find('.headimg');
	
	
	var objs = obj.clone().insertAfter(obj);

	var divTop = obj.offset().top;

	var divLeft = obj.offset().left;

	obj.css({ "position": "absolute", "z-index": "9999", "left": divLeft + "px", "top": divTop + "px" });

	obj.stop().animate({ "left":$("#shopping .cart-logo").offset().left + "px", "top": $("#shopping .cart-logo").offset().top + "px", "width": "0px", "height": "0px" },600, function (){
		obj.stop().animate({ "left": $("#shopping .cart-logo").offset().left + "px", "top": $("#shopping .cart-logo").offset().top + "px" }, 600).fadeTo(0, 0.1).hide(0).remove();

	});

}

</script>
<body>
<include file='__VIEW__/common/header.html'/>
	<div id="content" class="caitant">
		<div class="location">
			<a href="/waimai">首页</a>
			<i>></i>
			<span>{$default.stname}</span>
		</div>
		<div class="shop_info" >
			<div class="sp_if_lf">
				<div class="info_img" style="overflow: hidden;"><img  src="__ROOT__/{$default.thumb}" alt="" width="198" /></div>
				<div class="info_arc">
					<h2>{$default.stname}</h2>
					<dl>
						<dt>{$default.kind}</dt>
						<dd class="rate-con">
							<span class="rate">
							<span class="rate-inner" style="width:{$default.grade}px"></span>
							</span>
							{$default.grade}分
						</dd>
					</dl>
				<p class="time">营业时间: {$default.businessstart}-{$default.businessend}
						

				</p>
				<if value='$zt'>
				<strong class="doing">营业中</strong>
				<else>
				<strong class="doing" stype="background:#c4c4c4">休息中</strong>

				</if>

				</div>
			</div>
			<div class="sp_if_rg">
				<dl>
					<dt>{$default.deliverytime}分钟</dt>
					<dd>平均送达时间</dd>
				</dl>

				<dl>
					<dt class="risedelivery">¥{$default.risedelivery}</dt>
					<dd>起送价</dd>
				</dl>

				<dl>
					<dt>¥{$default.delivery}</dt>
					<dd>原配送费：<span>¥0</span></dd>
				</dl>
			</div>
		</div>

	</div>

	<div id="menu" class="caitant">
		<div class="menu_info">
			<ul class="navigation">
				<li class="hover">菜单</li>
				<li>评价</li>
			</ul>

			<div class="classify">
				<ul>
				<foreach from="$menus" key="$k" value="$v">
					<li><a href="#fiy{$k}">{$v.menuname}</a></li>
				</foreach>
				</ul>
			</div>
			<foreach from="$newData" key="$key" value="$value">
				
			
			<p id="fiy{$key}" class="title">{$value.menuname}</p>
			<div class="greens">
				<ul>
					<foreach from="$value['shop']" value="$v">
					<li data="{$v.sid}">
						<div class="headimg">
							<img height="120px;" src="__ROOT__/{$v.img}" alt=""    />
						</div>
					<p class="greens_if">{$v.shopname}</p>
						<p class="greens_ty"><em class="tuijian">{$v.recommend}人推荐</em><em class="yishou">已售{$v.sell}份</em></p>
						<span class="jiage"><strong>¥</strong>{$v.price}</span>
						<div class="addition">
							<div class="addition_con">
								<strong class="minusfrcart" data-node="minusfrcart"></strong>
								<strong class="select_count">0</strong>
								<strong class="addtocart" data-node="addtocart" onClick="MoveBox(this)"></strong>
							</div>
						</div>
					</li>

				</foreach>
					
				</ul>
			</div>

			</foreach>
		</div>
		<div class="restaurant_info">
			<div class="collect">
			<i></i>
			<span>收藏餐厅</span>
			</div>
			<div class="support">
				<ul>
					<if value="in_array('jian',$attr)">
					<li><i class="jian-min-icon"></i><span>下单立减8元，每天2单</span></li>
					</if>

					<if value="in_array('mian',$attr)">
					<li><i class="mian-min-icon"></i><span>下单免配送费</span></li>
					</if>


					<if value="in_array('piao',$attr)">
					<li><i class="invoice-min-icon"></i><span>支持开发票 </span></li>
					</if>


				</ul>
			</div>
			

			<div class="announcement">
				<p  class="title">商家公告</p>
				<div class="content">{$default.bulletin}</div>
					<p class="note">配送服务由{$default.stname}提供</p>
			</div>

		</div>
	</div>
	<div id="shopping">


<div class="cc-warp hide" style="display: none;">
<div class="title">
<span class="txt">购物车</span>
<span class="clear-cart">清空</span>
</div>



<div class="cart-panel" style="max-height: 166.8px;">
<table>
<thead class="cart-head">
<tr>
<td class="item-name">菜品</td>
<td class="item-count">份数</td>
<td class="item-price">单价</td>
<td class="item-delete"></td>
</tr>
</thead>
<tbody class="item-list">
<!-- <tr id="cartItem_11403874711982427665" class="item normal-item hide" style="display: table-row;">
<td class="item-name">蛋炒饭</td>
<td class="item-count">
<input type="hidden" value="11403874711982427665">
<span class="item-minus" type="button" value=""></span>
<input class="item-count" type="input" value="1">
<span class="item-plus" type="button" value=""></span>
</td>
<td class="item-price">¥13.8</td>
<td class="item-delete">
<span class="item-delete-icon">×</span>
</td>
</tr> -->
<if value="in_array('piao',$attr)">
<tr class="premium-item item jian">

<td class="item-name">
立减优惠
<span class="jian-min-icon premium-icon"></span>
</td>
<td class="item-count"></td>
<td class="item-price">- ¥6.0</td>
<td class="item-delete"></td>
</tr>
</if>

<if value="in_array('mian',$attr)">
<tr class="premium-item item mian">

<td class="item-name">
免配送费
<span class="mian-min-icon premium-icon"></span>
</td>
<td class="item-count"></td>
<td class="item-price">- ¥6.0</td>
<td class="item-delete"></td>
</tr>
</if>




</tbody>
</table>
</div>



</div>
	<div class="cart-bar">
			<span class="cart-logo fl"></span>
			<!-- <span id="cartIsEmpty" class="cart-desc " style="display: inline-block;">购物车是空的</span> -->
			<span id="cartAmout" class="cart-desc fl lh-normal" style="float: left">
			<span class="premium-price" style="line-height: normal;font-size:16px;">共 ¥0 元</span>
			<br>
			<span class="premium-origin" style="line-height: 15px">
			原价 
			<del>¥0</del>
			元
			</span>
			</span>
			<span id="cartCha" class="cart-desc cart-cha fr" style="display: block; padding: 0 18px;background-color: #787878;
    cursor: default;float: right">差 ¥3.0起送</span>
<span id="cartSubmit" class="cart-desc submit fr" style="display: none;padding: 0 18px;cursor: default;float: right;cursor:pointer  ">选好了</span>
		</div>
	</div>
</body>
</html>